package org.dreamwork.jasmine2.web.controls.datagrid;

import org.dreamwork.jasmine2.web.controls.WebContainer;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2010-10-14
 * Time: 16:17:48
 */
public class Column extends WebContainer {
    private String format;
    private String headText;

    public String getFormat () {
        return format;
    }

    public void setFormat (String format) {
        this.format = format;
    }

    public String getHeadText () {
        return headText;
    }

    public void setHeadText (String headText) {
        this.headText = headText;
    }

    @Override
    public void init () {
        super.init ();
        ((DataGrid) parent).columns.add (this);
    }
}